using System;

namespace GenericsFramework.BusinessRules
{
	public class OrRule<T> : AbstractRule<T>
	{
		public OrRule(Func<T, bool> ruleA, Func<T, bool> ruleB)
		{
			_rule = candidate => ruleA(candidate) || ruleB(candidate);
		}
	}
}